<?php
    
    namespace app\api\controller;
    
    use think\Controller;
    use think\Db;

    class Supplier extends Controller
    {
        //测试数据库是否连接上了
        public function testdb(){
            $supplier_list = Db::query("select id , company_name from bd_supplier where id = ?" , [1]);
            return $supplier_list;
        }
    }